Skip to content

Use match statements in _handle_vumark_exceptions#2135

Merged
adamtheturtle merged 2 commits intomainfrom
adamtheturtle/vumark-match-exc
Apr 15, 2026
Merged

Use match statements in _handle_vumark_exceptions#2135
adamtheturtle merged 2 commits intomainfrom
adamtheturtle/vumark-match-exc

Conversation

@adamtheturtle
Copy link
Copy Markdown
Member

@adamtheturtle adamtheturtle commented Apr 15, 2026

Summary

  • Replace isinstance checks with match/case statements in _handle_vumark_exceptions for clarity and consistency with other CLI error handling.
  • uv.lock updated with latest dependency versions (pyrefly 0.61.0, ty 0.0.30).

Closes #2134

Test plan

  • Verify existing tests pass with no changes to user-visible messages or exit codes.

🤖 Generated with Claude Code


Note

Low Risk
Low risk refactor that preserves existing error messages/exit behavior, plus lockfile-only dev dependency bumps (pyrefly, ty).

Overview
Refactors src/vws_cli/vumark.py’s _handle_vumark_exceptions to replace isinstance branching with match/case while keeping the same user-facing error messages and exit path.

Updates uv.lock to bump dev tooling dependencies (pyrefly to 0.61.0, ty to 0.0.30).

Reviewed by Cursor Bugbot for commit 5c0efef. Bugbot is set up for automated code reviews on this repo. Configure here.

Replace isinstance checks with match/case for clarity and consistency
with other CLI error handling.

Closes #2134

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Coverage sees the implicit fallthrough of a match statement as an
uncovered branch. Using `case _:` instead of an explicit type match
for the second case eliminates the uncovered branch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@adamtheturtle adamtheturtle merged commit d4f4004 into main Apr 15, 2026
16 checks passed
@adamtheturtle adamtheturtle deleted the adamtheturtle/vumark-match-exc branch April 15, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use match in vumark _handle_vumark_exceptions

1 participant